package com.cnvai.cms.javabean.model;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class BmbmbExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public BmbmbExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andBmidIsNull() {
            addCriterion("BMID is null");
            return (Criteria) this;
        }

        public Criteria andBmidIsNotNull() {
            addCriterion("BMID is not null");
            return (Criteria) this;
        }

        public Criteria andBmidEqualTo(BigDecimal value) {
            addCriterion("BMID =", value, "bmid");
            return (Criteria) this;
        }

        public Criteria andBmidNotEqualTo(BigDecimal value) {
            addCriterion("BMID <>", value, "bmid");
            return (Criteria) this;
        }

        public Criteria andBmidGreaterThan(BigDecimal value) {
            addCriterion("BMID >", value, "bmid");
            return (Criteria) this;
        }

        public Criteria andBmidGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("BMID >=", value, "bmid");
            return (Criteria) this;
        }

        public Criteria andBmidLessThan(BigDecimal value) {
            addCriterion("BMID <", value, "bmid");
            return (Criteria) this;
        }

        public Criteria andBmidLessThanOrEqualTo(BigDecimal value) {
            addCriterion("BMID <=", value, "bmid");
            return (Criteria) this;
        }

        public Criteria andBmidIn(List<BigDecimal> values) {
            addCriterion("BMID in", values, "bmid");
            return (Criteria) this;
        }

        public Criteria andBmidNotIn(List<BigDecimal> values) {
            addCriterion("BMID not in", values, "bmid");
            return (Criteria) this;
        }

        public Criteria andBmidBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("BMID between", value1, value2, "bmid");
            return (Criteria) this;
        }

        public Criteria andBmidNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("BMID not between", value1, value2, "bmid");
            return (Criteria) this;
        }

        public Criteria andBossidIsNull() {
            addCriterion("BOSSID is null");
            return (Criteria) this;
        }

        public Criteria andBossidIsNotNull() {
            addCriterion("BOSSID is not null");
            return (Criteria) this;
        }

        public Criteria andBossidEqualTo(BigDecimal value) {
            addCriterion("BOSSID =", value, "bossid");
            return (Criteria) this;
        }

        public Criteria andBossidNotEqualTo(BigDecimal value) {
            addCriterion("BOSSID <>", value, "bossid");
            return (Criteria) this;
        }

        public Criteria andBossidGreaterThan(BigDecimal value) {
            addCriterion("BOSSID >", value, "bossid");
            return (Criteria) this;
        }

        public Criteria andBossidGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("BOSSID >=", value, "bossid");
            return (Criteria) this;
        }

        public Criteria andBossidLessThan(BigDecimal value) {
            addCriterion("BOSSID <", value, "bossid");
            return (Criteria) this;
        }

        public Criteria andBossidLessThanOrEqualTo(BigDecimal value) {
            addCriterion("BOSSID <=", value, "bossid");
            return (Criteria) this;
        }

        public Criteria andBossidIn(List<BigDecimal> values) {
            addCriterion("BOSSID in", values, "bossid");
            return (Criteria) this;
        }

        public Criteria andBossidNotIn(List<BigDecimal> values) {
            addCriterion("BOSSID not in", values, "bossid");
            return (Criteria) this;
        }

        public Criteria andBossidBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("BOSSID between", value1, value2, "bossid");
            return (Criteria) this;
        }

        public Criteria andBossidNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("BOSSID not between", value1, value2, "bossid");
            return (Criteria) this;
        }

        public Criteria andFjdidIsNull() {
            addCriterion("FJDID is null");
            return (Criteria) this;
        }

        public Criteria andFjdidIsNotNull() {
            addCriterion("FJDID is not null");
            return (Criteria) this;
        }

        public Criteria andFjdidEqualTo(BigDecimal value) {
            addCriterion("FJDID =", value, "fjdid");
            return (Criteria) this;
        }

        public Criteria andFjdidNotEqualTo(BigDecimal value) {
            addCriterion("FJDID <>", value, "fjdid");
            return (Criteria) this;
        }

        public Criteria andFjdidGreaterThan(BigDecimal value) {
            addCriterion("FJDID >", value, "fjdid");
            return (Criteria) this;
        }

        public Criteria andFjdidGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("FJDID >=", value, "fjdid");
            return (Criteria) this;
        }

        public Criteria andFjdidLessThan(BigDecimal value) {
            addCriterion("FJDID <", value, "fjdid");
            return (Criteria) this;
        }

        public Criteria andFjdidLessThanOrEqualTo(BigDecimal value) {
            addCriterion("FJDID <=", value, "fjdid");
            return (Criteria) this;
        }

        public Criteria andFjdidIn(List<BigDecimal> values) {
            addCriterion("FJDID in", values, "fjdid");
            return (Criteria) this;
        }

        public Criteria andFjdidNotIn(List<BigDecimal> values) {
            addCriterion("FJDID not in", values, "fjdid");
            return (Criteria) this;
        }

        public Criteria andFjdidBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("FJDID between", value1, value2, "fjdid");
            return (Criteria) this;
        }

        public Criteria andFjdidNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("FJDID not between", value1, value2, "fjdid");
            return (Criteria) this;
        }

        public Criteria andCodeIsNull() {
            addCriterion("CODE is null");
            return (Criteria) this;
        }

        public Criteria andCodeIsNotNull() {
            addCriterion("CODE is not null");
            return (Criteria) this;
        }

        public Criteria andCodeEqualTo(String value) {
            addCriterion("CODE =", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeNotEqualTo(String value) {
            addCriterion("CODE <>", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeGreaterThan(String value) {
            addCriterion("CODE >", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeGreaterThanOrEqualTo(String value) {
            addCriterion("CODE >=", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeLessThan(String value) {
            addCriterion("CODE <", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeLessThanOrEqualTo(String value) {
            addCriterion("CODE <=", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeLike(String value) {
            addCriterion("CODE like", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeNotLike(String value) {
            addCriterion("CODE not like", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeIn(List<String> values) {
            addCriterion("CODE in", values, "code");
            return (Criteria) this;
        }

        public Criteria andCodeNotIn(List<String> values) {
            addCriterion("CODE not in", values, "code");
            return (Criteria) this;
        }

        public Criteria andCodeBetween(String value1, String value2) {
            addCriterion("CODE between", value1, value2, "code");
            return (Criteria) this;
        }

        public Criteria andCodeNotBetween(String value1, String value2) {
            addCriterion("CODE not between", value1, value2, "code");
            return (Criteria) this;
        }

        public Criteria andCsIsNull() {
            addCriterion("CS is null");
            return (Criteria) this;
        }

        public Criteria andCsIsNotNull() {
            addCriterion("CS is not null");
            return (Criteria) this;
        }

        public Criteria andCsEqualTo(BigDecimal value) {
            addCriterion("CS =", value, "cs");
            return (Criteria) this;
        }

        public Criteria andCsNotEqualTo(BigDecimal value) {
            addCriterion("CS <>", value, "cs");
            return (Criteria) this;
        }

        public Criteria andCsGreaterThan(BigDecimal value) {
            addCriterion("CS >", value, "cs");
            return (Criteria) this;
        }

        public Criteria andCsGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("CS >=", value, "cs");
            return (Criteria) this;
        }

        public Criteria andCsLessThan(BigDecimal value) {
            addCriterion("CS <", value, "cs");
            return (Criteria) this;
        }

        public Criteria andCsLessThanOrEqualTo(BigDecimal value) {
            addCriterion("CS <=", value, "cs");
            return (Criteria) this;
        }

        public Criteria andCsIn(List<BigDecimal> values) {
            addCriterion("CS in", values, "cs");
            return (Criteria) this;
        }

        public Criteria andCsNotIn(List<BigDecimal> values) {
            addCriterion("CS not in", values, "cs");
            return (Criteria) this;
        }

        public Criteria andCsBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("CS between", value1, value2, "cs");
            return (Criteria) this;
        }

        public Criteria andCsNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("CS not between", value1, value2, "cs");
            return (Criteria) this;
        }

        public Criteria andBmmcIsNull() {
            addCriterion("BMMC is null");
            return (Criteria) this;
        }

        public Criteria andBmmcIsNotNull() {
            addCriterion("BMMC is not null");
            return (Criteria) this;
        }

        public Criteria andBmmcEqualTo(String value) {
            addCriterion("BMMC =", value, "bmmc");
            return (Criteria) this;
        }

        public Criteria andBmmcNotEqualTo(String value) {
            addCriterion("BMMC <>", value, "bmmc");
            return (Criteria) this;
        }

        public Criteria andBmmcGreaterThan(String value) {
            addCriterion("BMMC >", value, "bmmc");
            return (Criteria) this;
        }

        public Criteria andBmmcGreaterThanOrEqualTo(String value) {
            addCriterion("BMMC >=", value, "bmmc");
            return (Criteria) this;
        }

        public Criteria andBmmcLessThan(String value) {
            addCriterion("BMMC <", value, "bmmc");
            return (Criteria) this;
        }

        public Criteria andBmmcLessThanOrEqualTo(String value) {
            addCriterion("BMMC <=", value, "bmmc");
            return (Criteria) this;
        }

        public Criteria andBmmcLike(String value) {
            addCriterion("BMMC like", value, "bmmc");
            return (Criteria) this;
        }

        public Criteria andBmmcNotLike(String value) {
            addCriterion("BMMC not like", value, "bmmc");
            return (Criteria) this;
        }

        public Criteria andBmmcIn(List<String> values) {
            addCriterion("BMMC in", values, "bmmc");
            return (Criteria) this;
        }

        public Criteria andBmmcNotIn(List<String> values) {
            addCriterion("BMMC not in", values, "bmmc");
            return (Criteria) this;
        }

        public Criteria andBmmcBetween(String value1, String value2) {
            addCriterion("BMMC between", value1, value2, "bmmc");
            return (Criteria) this;
        }

        public Criteria andBmmcNotBetween(String value1, String value2) {
            addCriterion("BMMC not between", value1, value2, "bmmc");
            return (Criteria) this;
        }

        public Criteria andQyztIsNull() {
            addCriterion("QYZT is null");
            return (Criteria) this;
        }

        public Criteria andQyztIsNotNull() {
            addCriterion("QYZT is not null");
            return (Criteria) this;
        }

        public Criteria andQyztEqualTo(BigDecimal value) {
            addCriterion("QYZT =", value, "qyzt");
            return (Criteria) this;
        }

        public Criteria andQyztNotEqualTo(BigDecimal value) {
            addCriterion("QYZT <>", value, "qyzt");
            return (Criteria) this;
        }

        public Criteria andQyztGreaterThan(BigDecimal value) {
            addCriterion("QYZT >", value, "qyzt");
            return (Criteria) this;
        }

        public Criteria andQyztGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("QYZT >=", value, "qyzt");
            return (Criteria) this;
        }

        public Criteria andQyztLessThan(BigDecimal value) {
            addCriterion("QYZT <", value, "qyzt");
            return (Criteria) this;
        }

        public Criteria andQyztLessThanOrEqualTo(BigDecimal value) {
            addCriterion("QYZT <=", value, "qyzt");
            return (Criteria) this;
        }

        public Criteria andQyztIn(List<BigDecimal> values) {
            addCriterion("QYZT in", values, "qyzt");
            return (Criteria) this;
        }

        public Criteria andQyztNotIn(List<BigDecimal> values) {
            addCriterion("QYZT not in", values, "qyzt");
            return (Criteria) this;
        }

        public Criteria andQyztBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("QYZT between", value1, value2, "qyzt");
            return (Criteria) this;
        }

        public Criteria andQyztNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("QYZT not between", value1, value2, "qyzt");
            return (Criteria) this;
        }

        public Criteria andBzIsNull() {
            addCriterion("BZ is null");
            return (Criteria) this;
        }

        public Criteria andBzIsNotNull() {
            addCriterion("BZ is not null");
            return (Criteria) this;
        }

        public Criteria andBzEqualTo(String value) {
            addCriterion("BZ =", value, "bz");
            return (Criteria) this;
        }

        public Criteria andBzNotEqualTo(String value) {
            addCriterion("BZ <>", value, "bz");
            return (Criteria) this;
        }

        public Criteria andBzGreaterThan(String value) {
            addCriterion("BZ >", value, "bz");
            return (Criteria) this;
        }

        public Criteria andBzGreaterThanOrEqualTo(String value) {
            addCriterion("BZ >=", value, "bz");
            return (Criteria) this;
        }

        public Criteria andBzLessThan(String value) {
            addCriterion("BZ <", value, "bz");
            return (Criteria) this;
        }

        public Criteria andBzLessThanOrEqualTo(String value) {
            addCriterion("BZ <=", value, "bz");
            return (Criteria) this;
        }

        public Criteria andBzLike(String value) {
            addCriterion("BZ like", value, "bz");
            return (Criteria) this;
        }

        public Criteria andBzNotLike(String value) {
            addCriterion("BZ not like", value, "bz");
            return (Criteria) this;
        }

        public Criteria andBzIn(List<String> values) {
            addCriterion("BZ in", values, "bz");
            return (Criteria) this;
        }

        public Criteria andBzNotIn(List<String> values) {
            addCriterion("BZ not in", values, "bz");
            return (Criteria) this;
        }

        public Criteria andBzBetween(String value1, String value2) {
            addCriterion("BZ between", value1, value2, "bz");
            return (Criteria) this;
        }

        public Criteria andBzNotBetween(String value1, String value2) {
            addCriterion("BZ not between", value1, value2, "bz");
            return (Criteria) this;
        }

        public Criteria andWbxxggsjIsNull() {
            addCriterion("WBXXGGSJ is null");
            return (Criteria) this;
        }

        public Criteria andWbxxggsjIsNotNull() {
            addCriterion("WBXXGGSJ is not null");
            return (Criteria) this;
        }

        public Criteria andWbxxggsjEqualTo(Date value) {
            addCriterionForJDBCDate("WBXXGGSJ =", value, "wbxxggsj");
            return (Criteria) this;
        }

        public Criteria andWbxxggsjNotEqualTo(Date value) {
            addCriterionForJDBCDate("WBXXGGSJ <>", value, "wbxxggsj");
            return (Criteria) this;
        }

        public Criteria andWbxxggsjGreaterThan(Date value) {
            addCriterionForJDBCDate("WBXXGGSJ >", value, "wbxxggsj");
            return (Criteria) this;
        }

        public Criteria andWbxxggsjGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("WBXXGGSJ >=", value, "wbxxggsj");
            return (Criteria) this;
        }

        public Criteria andWbxxggsjLessThan(Date value) {
            addCriterionForJDBCDate("WBXXGGSJ <", value, "wbxxggsj");
            return (Criteria) this;
        }

        public Criteria andWbxxggsjLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("WBXXGGSJ <=", value, "wbxxggsj");
            return (Criteria) this;
        }

        public Criteria andWbxxggsjIn(List<Date> values) {
            addCriterionForJDBCDate("WBXXGGSJ in", values, "wbxxggsj");
            return (Criteria) this;
        }

        public Criteria andWbxxggsjNotIn(List<Date> values) {
            addCriterionForJDBCDate("WBXXGGSJ not in", values, "wbxxggsj");
            return (Criteria) this;
        }

        public Criteria andWbxxggsjBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("WBXXGGSJ between", value1, value2, "wbxxggsj");
            return (Criteria) this;
        }

        public Criteria andWbxxggsjNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("WBXXGGSJ not between", value1, value2, "wbxxggsj");
            return (Criteria) this;
        }

        public Criteria andSzkzsidIsNull() {
            addCriterion("SZKZSID is null");
            return (Criteria) this;
        }

        public Criteria andSzkzsidIsNotNull() {
            addCriterion("SZKZSID is not null");
            return (Criteria) this;
        }

        public Criteria andSzkzsidEqualTo(BigDecimal value) {
            addCriterion("SZKZSID =", value, "szkzsid");
            return (Criteria) this;
        }

        public Criteria andSzkzsidNotEqualTo(BigDecimal value) {
            addCriterion("SZKZSID <>", value, "szkzsid");
            return (Criteria) this;
        }

        public Criteria andSzkzsidGreaterThan(BigDecimal value) {
            addCriterion("SZKZSID >", value, "szkzsid");
            return (Criteria) this;
        }

        public Criteria andSzkzsidGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("SZKZSID >=", value, "szkzsid");
            return (Criteria) this;
        }

        public Criteria andSzkzsidLessThan(BigDecimal value) {
            addCriterion("SZKZSID <", value, "szkzsid");
            return (Criteria) this;
        }

        public Criteria andSzkzsidLessThanOrEqualTo(BigDecimal value) {
            addCriterion("SZKZSID <=", value, "szkzsid");
            return (Criteria) this;
        }

        public Criteria andSzkzsidIn(List<BigDecimal> values) {
            addCriterion("SZKZSID in", values, "szkzsid");
            return (Criteria) this;
        }

        public Criteria andSzkzsidNotIn(List<BigDecimal> values) {
            addCriterion("SZKZSID not in", values, "szkzsid");
            return (Criteria) this;
        }

        public Criteria andSzkzsidBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("SZKZSID between", value1, value2, "szkzsid");
            return (Criteria) this;
        }

        public Criteria andSzkzsidNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("SZKZSID not between", value1, value2, "szkzsid");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}